module.exports = {
  presets: [
    [
      'taro',
      {
        framework: 'react',
        ts: true,
        //小程序不 usage不行
        // useBuiltIns: 'usage',
        useBuiltIns: 'entry',
        corejs: '3',
        // useBuiltIns: false,
        // hot: false,
      },
    ],
  ],
  plugins: [
    [
      'import',
      {
        libraryName: 'taro-hooks',
        camel2DashComponentName: false,
      },
      'taro-hooks',
    ],
    [
      'import',
      {
        libraryName: '@antmjs/vantui',
        libraryDirectory: 'es',
        style: (name) => `${name}/style/less`,
      },
      '@antmjs/vantui',
    ],
    // [
    //   'import',
    //   {
    //     libraryName: '@vh-mobile/pro-components',
    //     libraryDirectory: 'es',
    //     style: true,
    //   },
    //   '@vh-mobile/pro-components',
    // ],
  ],
};
